package cn.itsource.basic.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="分页返回的对象",description = "包含total总条数，list数据")
public class PageList<T> {

    //总条数
    @ApiModelProperty(value = "总条数")
    private Long total = 0L;

    //那一夜（页）的数据
    @ApiModelProperty(value = "数据集合")
    private List<T> list = new ArrayList<>();

}
